<template>
  <div class="rightContent">
    <el-row :gutter="20">
      <el-col :span="8">
        <div class="list">
          <p class="title">流动人员数据统计</p>
          <div class="des">
            <img src="@/assets/images/sheng.png" alt="" />
            <span>跨省流动人数</span>
            <span class="num">5000</span>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="list">
          <p class="title">流动人员数据统计</p>
          <div class="des">
            <img src="@/assets/images/shi.png" alt="" />
            <span>跨市流动人数</span>
            <span class="num" style="color: #ffc70c">3000</span>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="list">
          <p class="title">流动人员数据统计</p>
          <div class="des">
            <img src="@/assets/images/shi.png" alt="" />
            <span>跨县流动人数</span>
            <span class="num" style="color: #92d5ff">2000</span>
          </div>
        </div>
      </el-col>
    </el-row>

    <el-table
      :cell-style="cellStyle"
      :data="tableData"
      @row-click="rowClick"
      style="width: 100%"
    >
      <el-table-column
        type="index"
        width="80"
        align="center"
        label="序号"
        cell-class-name="indexColor"
      >
      </el-table-column>
      <el-table-column prop="name" align="center" label="上报信息">
      </el-table-column>
      <el-table-column prop="sex" align="center" label="审批状态">
      </el-table-column>
      <el-table-column prop="ID" align="center" min-width="188," label="原因">
      </el-table-column>
      <el-table-column
        prop="time"
        align="center"
        min-width="106,"
        label="上报人"
      >
      </el-table-column>
      <el-table-column prop="visitingPlace" align="center" label="处理结果">
      </el-table-column>
      <el-table-column prop="placeOfVisit" align="center" label="上报时间">
      </el-table-column>

      <el-table-column min-width="114," align="center">
        <template>
          <a href="javascript:;">分析研判 ></a>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "floatingPersonnel",

  data() {
    return {
      tableData: [
        {
          name: "吵架",
          sex: "轻微事故",
          ID: "停车场占地问题",
          time: "张浩天",
          visitingPlace: "已调解",
          placeOfVisit: "2023-04-07",
        },
        {
          name: "打架",
          sex: "一般事故",
          ID: "双方相互辱骂动手打架",
          time: "寒天",
          visitingPlace: "在调解中",
          placeOfVisit: "2023-04-08",
        },
        {
          name: "车祸",
          sex: "重大事故",
          ID: "醉驾",
          time: "张一山",
          visitingPlace: "警方介入调查",
          placeOfVisit: "2023-04-08",
        },
        {
          name: "偷窃事件",
          sex: "事故",
          ID: "家中电瓶被偷",
          time: "沈信义",
          visitingPlace: "警方介入调查",
          placeOfVisit: "2023-04-09",
        },
      ],
    };
  },

  mounted() {},

  methods: {
    rowClick() {
      this.$router.push({ name: "ldryxq" });
    },
    cellStyle({ row, column, rowIndex, columnIndex }) {
      if (columnIndex == 0) {
        return { color: "#5abbff" };
      }
    },
    handleAddOrUpdateOk() {
      proxy.$message.success("修改成功");
      this.addOrUpdateDrawerVisible = false;
    },
    handleAddOrUpdateCancel() {
      addOrUpdateDrawerVisible.value = false;
    },
  },
};
</script>

<style slot-scope="scope">
.list {
  width: 100%;
  height: 150px;
  background: url("@/assets/images/ldryBg.png") no-repeat center center;
  background-size: 100% 100%;
  margin-top: 90px;
  position: relative;
  color: #d4eaf6;
}
.title {
  font-size: 20px;
  color: #92d5ff;
  position: relative;
  top: -11px;
  left: 2px;
}
.des {
  display: flex;
  align-items: center;
  font-size: 26px;
  color: #d4eaf6;
}
.des img {
  width: 94px;
  margin-right: 27px;
}
.des .num {
  font-size: 40px;
  color: #e73851;
  margin-left: 24px;
}
</style>
